<?php
require_once("lib/db_connection.php");
$trouble_id = $_GET['trouble'];
$str_value = "";

$query = "select value from remedy_droplist_tbl where company_id='".$_SESSION['company_id']."' and trouble_droplist_id='".$trouble_id."' order by value asc";
$result = mysql_query($query);

while($row = mysql_fetch_array($result))
{
	$str_value=$str_value."\"$row[value]\"".",";
}

$str_value=substr($str_value,0,(strLen($str_value)-1)); // Removing the last char , from the string
echo "new Array($str_value)";
?>